package com.wsx.ones.cloud.service;

import com.wsx.ones.cloud.product.Product;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wangshuaixin on 17/5/21.
 */
@FeignClient(name = "cloud-product")
public interface ProductService {

    @RequestMapping(
            value = "/Product/product/second",
            method = {RequestMethod.POST}
    )
    public String getPost(@RequestBody Product product);
}
